package com.zhuiyun.pm.client.surety.controller;

import com.zhuiyun.pm.client.surety.service.SuretyService;
import com.zhuiyun.pm.result.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**保证金
 * @Author dongdong
 * @Date 2023/3/19 12:39
 **/
@RestController
@CrossOrigin
@RequestMapping("surety")
public class SuretyController {
    @Autowired
    SuretyService suretyService;

    @GetMapping("depositSurety")
    public CommonResult depositSurety(Integer userId,Integer goodsId,Integer addressId){
        suretyService.depositSurety(userId,goodsId,addressId);
        return CommonResult.ok();
    }

}
